
package xdev.vt;


import org.junit.Ignore;


@Ignore
public class VirtualTableTestListener implements VirtualTableListener
{
	private String			aktion					= "";
	
	public static String	actionDelete			= "Deleted";
	public static String	actionInsert			= "Inserted";
	public static String	actionUpdate			= "Update";
	public static String	actionDataChanged		= "DataChanged";
	public static String	actionStructureChanged	= "TableStructureChanged";
	

	public String getAktion()
	{
		return aktion;
	}
	

	@Override
	public void virtualTableRowDeleted(VirtualTableEvent event)
	{
		this.aktion = actionDelete;
		
	}
	

	@Override
	public void virtualTableRowInserted(VirtualTableEvent event)
	{
		aktion = actionInsert;
		
	}
	

	@Override
	public void virtualTableRowUpdated(VirtualTableEvent event)
	{
		aktion = actionUpdate;
	}
	

	@Override
	public void virtualTableDataChanged(VirtualTableEvent event)
	{
		aktion = actionDataChanged;
		
	}
	

	@Override
	public void virtualTableStructureChanged(VirtualTableEvent event)
	{
		aktion = actionStructureChanged;
		
	}
}
